package cn.cai.pethome.dept.domain;

import lombok.Data;

@Data
public class Department {
    private Long id;//id
    private String sn;//部门编号
    private String name;//部门名称
    private String dirPath;//部门的层级
    private Integer state;//部门的状态

    private Long manager_id;//管理员id
    private Employee manager;
    private Long parent_id;//父级部门id
    private Department parent;

    public Department(String sn, String name, String dirPath, Integer state, Long manager_id, Long parent_id) {
        this.sn = sn;
        this.name = name;
        this.dirPath = dirPath;
        this.state = state;
        this.manager_id = manager_id;
        this.parent_id = parent_id;
    }

    public Department(Long id, String name) {
        this.id = id;
        this.name = name;
    }
}
